<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
<c:choose>
<c:when test="${bean.tab == 'listMembers'}">
    <spring:message  code="pim"/> - <spring:message  code="homepage.project"/>&nbsp;<c:out value="${bean.project.name}"></c:out> - <spring:message  code="project.list.member"/>
</c:when>
<c:when test="${bean.tab == 'addMembers'}">
    <spring:message  code="pim"/> - <spring:message  code="homepage.project"/>&nbsp;<c:out value="${bean.project.name}"></c:out> - <spring:message  code="project.add.member"/>
</c:when>
</c:choose>
</title>
<link href="<%= request.getContextPath() %>/css/custom.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/v.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/paging.css" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/jquery.ui.dialog.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.6.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-ui-1.8.14.custom.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.hint.text.js"></script>
<%@include file="script/pim-util.jsp" %>
<%@include file="script/member-script.jsp" %>
<%@include file="script/sort-table.jsp" %>
<%@include file="script/paging-script.jsp" %>
<script type="text/javascript">
jQuery(document).ready(function(){    
    $('input[title]').inputHints();	
});   
</script>
<c:choose>
  <c:when test="${bean.isAdmin == true}">
    <script type="text/javascript">
		var TSort_Data = new Array ('mytable','', '','s','s', 's', 's','s','s');
		tsRegister();
	</script>
  </c:when>
  <c:otherwise>
    <script type="text/javascript">
        var TSort_Data = new Array ('mytable','','s','s', 's', 's','s','s');
		tsRegister();
	</script>
  </c:otherwise>
</c:choose>
</head>
<body>
<% try{ %>
<c:if test="${bean.isSigned == true}">
<div id="all">
<div id="wrapper">
<div id="mainheader">
	<jsp:include page="include/common/headerSignedIn.jsp" />
</div> 
<div id="content-wrapper">
<div id="top-menu">
    <jsp:include page="include/common/topMenuHome.jsp" />
</div>
<div class="workspace-menu-top">
    <c:choose>
	    <c:when test="${bean.isAdmin == true}">
	      <jsp:include page="include/common/admin-menu.jsp" />
	    </c:when>
	    <c:otherwise>
	      <jsp:include page="include/common/user-menu.jsp" />
	    </c:otherwise>
	</c:choose> 
</div>
<form:form action="" name="frmMembers" commandName="members" method="post">         
<div class="tabs-content">
	<c:choose>
		<c:when test="${bean.tab == 'addMembers'}">
			<jsp:include page="include/member/addMembers.jsp"/>
		</c:when>
		<c:when test="${bean.tab == 'listMembers'}">
			<jsp:include page="include/member/listMembers.jsp"/>
		</c:when>
	</c:choose>
<input type="hidden" name="cmd"/>
<input type="hidden" name="pnum" value="${bean.project.number}"/>
<input type="hidden" name="returnToFullPageURL" value="${bean.returnToFullPageURL}"/>
<input type="hidden" name="countList" value="${bean.countList}"/>
</div>
</form:form>
</div>
</div>
<div class="footer">
	<jsp:include page="include/common/footer.jsp" />
</div>
</div>
</c:if>
<% } catch(RuntimeException re){ re.printStackTrace(); } %>
</body>
</html>